#ifndef __lpdraster_h__

#define __lpdraster_h__

#include <LPD8806.h>

/*class LpdRaster : public Raster {
  LPD8806 lpd;
  
public:
  LpdRaster(int width, int height, uint8_t dpin, uint8_t cpin)
  : Raster(width, height),
  lpd(width * height, dpin, cpin) {
  }
  
  void SetPixel(int index, Color color) {
    lpd.setPixelColor(index, color.r, color.g, color.b);
  }
  
  Color GetPixel(int index) const {
    LpdRaster* mutable_this = (LpdRaster*)this;
    uint32_t color = mutable_this->lpd.getPixelColor(index);
    Color result((color >> 16) & 0xff,
                 (color >> 8)  & 0xff,
                 color         & 0xff);
  }
  
  void Show() {
    lpd.show();
  }
  
  void Init() {
    lpd.begin();
  }
  
};*/


#endif